package cn.kgc.service;

import cn.kgc.pojo.AppCategory;
import cn.kgc.pojo.AppInfo;
import cn.kgc.pojo.AppVersion;
import cn.kgc.pojo.DataDictionary;
import cn.kgc.util.PageDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 后台管理service类
 */

public interface AppSercive {

//    Integer totalRecode(String softwareName, Integer flatformId, Integer categoryLevel1,
//                       Integer categoryLevel2, Integer categoryLevel3);

    PageDto queryAll(Integer pageNumber, AppInfo appInfo)throws Exception ;


    Integer totalRecodeQ(AppInfo appInfo)throws Exception ;

    List<DataDictionary> listPlatform(String typeName)throws Exception ;

    List<AppCategory> listLv1()throws Exception ;

    List<AppCategory> listLv2(Integer id)throws Exception ;


    List<AppInfo> queryById(Integer id)throws Exception ;

    List<AppVersion> queryVersionById(Integer id)throws Exception ;

    Integer updateStatus(Integer id, Integer status) throws Exception;

    List<AppVersion> appVersionL(Integer appId) throws Exception;

    public int modifies(AppVersion appVersion)throws Exception;
    List<AppVersion> modifies1(Integer appId) throws Exception;
    int updateVersionId(@Param("id") Integer id,@Param("versionId")Integer versionId) throws Exception;

    public int deleteVI(Integer id)throws Exception;





}
